package com.leo.blog.service;

import java.util.List;

import com.leo.blog.dto.HeadLineExecution;
import com.leo.blog.entity.HeadLine;
import com.leo.blog.exceptions.HeadLineOperationException;

public interface HeadLineService {
	/**
	 * 添加头条
	 * @param headLine
	 * @return
	 */
	HeadLineExecution addHeadLine(String name, HeadLine headLine) throws HeadLineOperationException;
	
	/**
	 * 根据id查询头条
	 * @param headLineId
	 * @return
	 */
	HeadLineExecution getHeadLineById(int headLineId);
	
	/**
	 * 更新头条
	 * @param headLine
	 * @return
	 */
	HeadLineExecution updateHeadLine(String name, HeadLine headLine);
	
	/**
	 * 根据id删除头条
	 * @param headLineId
	 * @return
	 */
	HeadLineExecution deleteHeadLineById(String name, int headLineId);
	
	/**
	 * 根据条件分页查询头条列表信息
	 * @param headLineCondition
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 */
	HeadLineExecution getHeadLineListByPage(HeadLine headLineCondition, int pageIndex, int pageSize);
}
